﻿<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="..\..\..\..\MonoDevelop.props" />
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProjectGuid>{174E6044-DD3A-49AB-9A5C-2A1F341B7B4F}</ProjectGuid>
    <TestRunnerCommand>..\..\..\..\build\bin\mdtool.exe</TestRunnerCommand>
    <TestRunnerArgs>run-md-tests</TestRunnerArgs>
    <TargetFrameworkVersion>$(MDFrameworkVersion)</TargetFrameworkVersion>
    <OutputPath>..\..\..\..\build\tests</OutputPath>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' " />
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' " />
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.Core" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="..\..\..\..\external\debugger-libs\UnitTests\Mono.Debugging.Tests\Shared\*.cs" />
    <Compile Include="..\..\..\..\external\debugger-libs\UnitTests\Mono.Debugging.Tests\Shared\Sdb\*.cs" />
    <Compile Include="..\..\..\..\external\debugger-libs\UnitTests\Mono.Debugging.Tests\Shared\Win32\*.cs" />
    <Compile Include="DebugTests.MonoDevelop.cs" />
    <Compile Include="TextFile.cs" />
    <Compile Include="VsCodeStackFrameTests.cs" />
    <Compile Include="BreakpointsAndSteppingTests.cs" />
    <Compile Include="ObjectValueTreeViewControllerTests.cs" />
  </ItemGroup>
  <ItemGroup>
    <ProjectReference Include="..\MonoDevelop.Debugger.csproj">
      <Project>{2357AABD-08C7-4808-A495-8FF2D3CDFDB0}</Project>
      <Name>MonoDevelop.Debugger</Name>
      <Private>False</Private>
    </ProjectReference>
    <ProjectReference Include="..\..\..\core\MonoDevelop.Core\MonoDevelop.Core.csproj">
      <Project>{7525BB88-6142-4A26-93B9-A30C6983390A}</Project>
      <Name>MonoDevelop.Core</Name>
      <Private>False</Private>
    </ProjectReference>
    <ProjectReference Include="..\..\..\core\MonoDevelop.Ide\MonoDevelop.Ide.csproj">
      <Project>{27096E7F-C91C-4AC6-B289-6897A701DF21}</Project>
      <Name>MonoDevelop.Ide</Name>
      <Private>False</Private>
    </ProjectReference>
    <ProjectReference Include="..\..\..\..\external\mono-addins\Mono.Addins\Mono.Addins.csproj">
      <Project>{91DD5A2D-9FE3-4C3C-9253-876141874DAD}</Project>
      <Name>Mono.Addins</Name>
      <Private>False</Private>
    </ProjectReference>
    <ProjectReference Include="..\..\..\..\external\debugger-libs\Mono.Debugging\Mono.Debugging.csproj">
      <Project>{90C99ADB-7D4B-4EB4-98C2-40BD1B14C7D2}</Project>
      <Name>Mono.Debugging</Name>
      <Private>False</Private>
    </ProjectReference>
    <ProjectReference Include="..\..\..\..\external\guiunit\src\framework\GuiUnit_NET_4_5.csproj">
      <Project>{D12F0F7B-8DE3-43EC-BA49-41052D065A9B}</Project>
      <Name>GuiUnit_NET_4_5</Name>
      <Private>False</Private>
    </ProjectReference>
    <ProjectReference Include="..\..\..\..\external\debugger-libs\Mono.Debugging.Soft\Mono.Debugging.Soft.csproj">
      <Project>{DE40756E-57F6-4AF2-B155-55E3A88CCED8}</Project>
      <Name>Mono.Debugging.Soft</Name>
      <Private>False</Private>
    </ProjectReference>
    <ProjectReference Include="..\..\MonoDevelop.Debugger.VSCodeDebugProtocol\MonoDevelop.Debugger.VsCodeDebugProtocol\MonoDevelop.Debugger.VsCodeDebugProtocol.csproj">
      <Project>{10F5BBD5-8A1D-4563-BCE4-DE681DFD82FD}</Project>
      <Name>MonoDevelop.Debugger.VsCodeDebugProtocol</Name>
    </ProjectReference>
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <Target Name="AfterBuild">
    <PropertyGroup>
      <UnitTestsDir>..\..\..\..\external\debugger-libs\UnitTests</UnitTestsDir>
    </PropertyGroup>
    <ItemGroup>
        <TestProjectFiles Include="$(UnitTestsDir)\**" Exclude="$(UnitTestsDir)\Mono.Debugging.Tests\**;$(UnitTestsDir)\**\.DS_Store" />
    </ItemGroup>
    <Copy SourceFiles="@(TestProjectFiles)" DestinationFolder="$(OutputPath)\DebuggerTestProjects\%(RecursiveDir)" SkipUnchangedFiles="true" />
  </Target>
</Project>
